/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.hazard.om.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.basic.hazard.source.entity.HazHazardSourceEntity;
import com.hopes.bizz.hazard.om.dto.MonitorDataPageDTO;
import com.hopes.bizz.hazard.om.entity.HazRtDataEntity;
import com.hopes.bizz.hazard.om.vo.HazAnalysisDataVO;
import com.hopes.bizz.hazard.om.vo.MonitorDataPageVO;

import java.util.List;

/**
 * 危险源实时监控数据
 *
 * @author daijie
 * @date 2023-11-02 15:18:20
 */
public interface HazRtDataService extends IService<HazRtDataEntity> {

    /**
     * 传感器状态分页查询
     * @param page
     * @param monitorDataPageDTO
     * @return
     */
    Page getMonitorDataPage(Page page, MonitorDataPageDTO monitorDataPageDTO);

    /**
     * GIS 传感器状态
     * @return
     */
    List<MonitorDataPageVO> gisMonitorData();

    /**
     * 数据趋势分析
     * @param hazHazardSource
     * @return
     */
    HazAnalysisDataVO trendAnalysis(HazHazardSourceEntity hazHazardSource);
}